package ym.ecrm.web.action.systemManagement;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import ym.ecrm.core.dto.systemManagement.UserDTO;
import ym.ecrm.core.service.systemManagement.ISystemService;
import ym.ecrm.web.action.base.BaseAction;

/**
 * 
 * @author Princess
 * 
 */
@Controller
public class LoadUserAction extends BaseAction{

	private Long userId;
	private UserDTO data;
	
	@Autowired
	private ISystemService systemService;
	
	public String execute(){
		if(userId != null){
			data = systemService.loadUser(userId);
		}
		return proccess();
	}
	
	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getSuccess(){
		return success;
	}

	public void setSuccess(String success) {
		this.success = success;
	}
	
	public UserDTO getData() {
		return data;
	}

	public void setData(UserDTO data) {
		this.data = data;
	}


}